<?php
//http://spamfree24.org/showmessage.asp?uid=repus41&msgid=262213
include_once("class_main_curl.php");
include_once("functions.php");
$temp_dir="temp-spamfree";
$mailbox="repus";
for($i=61; $i<=80; $i++)
{
	$obj_curl = new main_curl();
	$obj_curl->url = "http://spamfree24.org/default.asp";
	$obj_curl->filename = $temp_dir."/index.html";
	$obj_curl->post = "mailbox=".$mailbox.$i."&subject=";
	$obj_curl->method_main_curl();
	list($msgid)=search_infile($obj_curl->filename, "default.asp?mailbox", "msgid=", "&");
	echo $msgid."\n";

	$obj_curl->url = "http://spamfree24.org/showmessage.asp?uid=".$mailbox.$i."&msgid=".$msgid;
	$obj_curl->filename = $temp_dir."/msg.html";
	$obj_curl->post = false;
	$obj_curl->method_main_curl();
	list($activation_link)=search_infile($obj_curl->filename, "http://vkontakte.ru/confirm.php", "http://vkontakte.ru/confirm.php?code=", "<br>");
	echo $activation_link."\n";

	$obj_curl->url = "http://vkontakte.ru/confirm.php?code=".$activation_link;
	$obj_curl->filename = $temp_dir."/vkontakte-".$i.".html";
	$obj_curl->method_main_curl();
	usleep(1100000);
}
?>